package com.ggg.clothesshop.service.IMPL;

import com.ggg.clothesshop.mapper.AttributeMapper;
import com.ggg.clothesshop.model.Attribute;
import com.ggg.clothesshop.service.AttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class AttributeServiceIMPL implements AttributeService {

    @Autowired
    private AttributeMapper attributeMapper;

    //获得所有的属性列表
    @Override
    public ArrayList<Attribute> selectAll() {
        return attributeMapper.selectAttributes();
    }
}
